<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">View Students</a>
            </li>
        </ul>
    </div>



    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>Presence Detail for Each Lecture of a Student</h2>

                    <div class="box-icon">
                        <!--                        <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a>-->
                        <a href="#" class="btn btn-minimize btn-round btn-default"><i class="glyphicon glyphicon-chevron-up"></i></a>
                        <!--                        <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>-->
                    </div>
                </div>
                <div class="box-content">
                    <table class="table">
                        <thead>
                            <tr>

                                <th>SID</th>
                                <th>Name</th>
                                    <c:forEach var="subject" items="${sessionScope.allsubjects}">
                                    <th>${subject.key}</th>
                                    </c:forEach>
                                <th>Average</th>


                            </tr>
                        </thead>
                        <tbody>


                            
                                <tr id="tr">
                                    <td class="center" id="td">${sessionScope.student.id}</td>
                                    <td class="center" id="td">${sessionScope.student.fname} &nbsp; ${sessionScope.student.lname}</td>
                                    <c:forEach var="subject" items="${sessionScope.allsubjects}">
                                        <td class="center" id="td">${subject.value}</td>
                                    </c:forEach>
                                    <td class="center" id="td">${sessionScope.avgpresence}%</td>
                                </tr>
                           

                        </tbody>
                    </table>
                    <ul class="pagination pagination-centered">



                    </ul>
                </div>
            </div>
        </div>
        <!--/span-->


        <!--/span-->
    </div>
</div>